/**
 * 
 */
package com.yi.backend.model.api;

import java.util.List;

import com.yi.backend.model.BusinessModel;

/**
 * @author long
 *
 */
public interface IBusinessModelApi extends ICommonModelApi{
	public String create(final String schemaName,final BusinessModel model);
	
	public void update(final String schemaName,final BusinessModel model);
	
	public BusinessModel viewById(final String schemaName,final String modelId);
	
	public BusinessModel viewByName(final String schemaName,final String modelName);
	
	public void removeById(final String schemaName,final String modelId);
	
	public List<BusinessModel> list(final String schemaName, final int pageNumber);
	
	public void initialRoles();
	
	public void initialUsers();
	
	public static final String roleSchemaName ="roles";
	public static final String userSchemaName ="users";
}
